|
DX11 SET SPRITE BUFFER
Assigns the given data buffer to the specified sprite so that it can be accessed by its shaders.
A buffer stage [0..7] can optionally be provided for a total of 8 data buffers per sprite.
Take note that textures and buffers share the same resource registers on the GPU. Textures will be bound to registers t0 through t15, while
buffers are bound to registers t16 through t23.
DX11 SET SPRITE BUFFER sprite, buffer, [stage]
sprite Dword The sprite to set the buffer to.
buffer Dword A buffer to make available to the shaders used to draw the given sprite. Set to nullptr to unbind a previously set buffer.
[Optional] stage Dword The buffer stage to set the buffer for; the valid range is [0..7]. Defaults to 0. The used shader register will be tX where X = 16 + the buffer stage number.
This function does not return a value.
SPRITE Functions Menu
DX11 Function Categories
|